#pragma once

#include <QList>
#include <QString>

class file
{
    public: 
        QString path;
        unsigned int download_count;
         
        file() :
            download_count(0)
        {
                
        }

		bool isInFolder(QString fname);
};

class FileList
{
    public:
        FileList();
        ~FileList();

        unsigned int size(){ return list.size(); }

		void addFileToList(file *fl);

        file *at(unsigned int index){ return list.at(index); }
		
    private:
        QList<file*> list;
};
